<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

	<title>Ajout requ&ecirc;te</title>
	<link rel="stylesheet" type="text/css" href="style/view.css" media="all">
	<script type="text/javascript" src="style/view.js"></script>
</head>
<body id="main_body">
	#if ($mail)
		#set($exp = $manager.getExp($mail))
	#end
	<!-- ************************************** -->

	<img id="top" src="style/top.png" alt="">
	<div id="form_container">
	
		<h1><a>Add query</a></h1>
		
		<!-- Affichage de la confirmation d'ajout -->
		#if ($name)
			<form method='post' action="addQuery.html">
			<table>
				<tr>
					<td>Experience</td><td>$experience</td>
					<td><input type="hidden" name="experience" value="$experience" /></td>
				</tr>
				<tr>
					<td>Name</td><td>$name</td>
					<td><input type="hidden" name="name" value="$name" /></td>
				</tr>
				<tr>
					<td>Point</td><td>$point</td>
					<td><input type="hidden" name="point" value="$point" /></td>
				</tr>
				<tr>
					<td>Sensor</td><td>$sensor</td>
					<td><input type="hidden" name="sensor" value="$sensor" /></td>
				</tr>
				<tr>
					<td>Options</td><td>$options</td>
					<td><input type="hidden" name="options" value="$!options" /></td>
				</tr>
				<tr>
					<td>Badge1</td><td>$badge_1</td>
					<td><input type="hidden" name="badge_1" value="$!badge_1" /></td>
				</tr>
				<tr>
					<td>Point1</td><td>$point_1</td>
					<td><input type="hidden" name="point_1" value="$!point_1" /></td>
				</tr>
				<tr>
					<td>Badge2</td><td>$badge_2</td>
					<td><input type="hidden" name="badge_2" value="$!badge_2" /></td>
				</tr>
				<tr>
					<td>Point2</td><td>$point_2</td>
					<td><input type="hidden" name="point_2" value="$!point_2" /></td>
				</tr>
				<tr>
					<td><input type="submit" value="Confirm" /></td>
					<td></td><td></td>
				</tr>
			</table>
			</form>
		#end
		<!-- ************************************** -->
		
		<form id="form_385848" class="appnitro"  method="post" action="main.html">
					<div class="form_description">
			<h2>Add query</h2>
			<p>Add your query for experience</p>
		</div>						
			<ul >
			
		<li id="li_4" >
		<label class="description" for="element_4">Experience </label>
		<div>
		<select class="element select medium" id="element_4" name="experience">
			#foreach($xp in $exp)
				<option value="$xp" selected="selected">$xp</option>
			#end
		</select>
		</div> 
		</li>		
		<li id="li_3" >
		<label class="description" for="element_3">Name</label>
		<div>
			<input id="element_3" name="name" class="element text medium" type="text" maxlength="255" value="$!name"/> 
		</div> 
		</li>		
		<li id="li_2" >
		<label class="description" for="element_2">Point</label>
		<div>
			<input id="element_2" name="point" class="element text medium" type="text" maxlength="255" value="$!point"/> 
		</div> 
		</li>		
		<li id="li_1" >
		<label class="description" for="element_1">Sensor</label>
		<div>
			<input id="element_1" name="sensor" class="element text medium" type="text" maxlength="255" value="$!sensor"/> 
		</div> 
		</li>
		<li id="li_5" >
		<label class="description" for="element_5">Options</label>
		<div>
			<input id="element_5" name="options" class="element text medium" type="text" maxlength="255" value="$!options"/> 
		</div> 
		</li>
		<li id="li_6">
		<label class="description" for="element_6">Badges points</label>
		<div id="badge">
			<input id="element_6" name="badge_1" class="element text small" type="text" maxlength="255" value="$!badge_1"/>
			<input id="element_6" name="point_1" class="element text small" type="text" maxlength="255" value="$!point_1"/>
		</div> 
		</li>
		<li id="li_7">
		<label class="description" for="element_6">Badges points</label>
		<div id="badge">
			<input id="element_7" name="badge_2" class="element text small" type="text" maxlength="255" value="$!badge_2"/>
			<input id="element_7" name="point_2" class="element text small" type="text" maxlength="255" value="$!point_2"/>
		</div> 
		</li>
		<li class="buttons">
			<input id="addBadge" class="button_text" type="button" value="Add Badge" />
		</li>
		<li class="buttons">
			<input type="hidden" name="form_id" value="385848" />
			    
			<input id="saveForm" class="button_text" type="submit" name="submit" value="Add" />
		</li>
		</ul>
		</form>	
		<div id="footer">
			
		</div>
	</div>
	<img id="bottom" src="style/bottom.png" alt="">
	</body>
</html>